<%@ page import="com.yyge.service.GoodsInfoService" %>
<%@ page import="com.yyge.service.impl.GoodsInfoServiceImpl" %>
<%@ page import="com.yyge.vo.R" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/5/9
  Time: 20:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
    //获取url地址中传递的GoodsId参数
    String goodsId=request.getParameter("goodsId");
    String message=null;
    if(goodsId!=null){
        int id=Integer.parseInt(goodsId);
        //那么直接调用业务逻辑层
        GoodsInfoService service=new GoodsInfoServiceImpl();
        R r=service.deleteByPrimaryKey(id);
        message = r.getMessage();
    }
  %>

<h1>你要删除的商品编号:<%=goodsId%></h1>
<div><%=message%></div>
</body>
</html>
